<?php
/***********
 * @param $url
 * @param string $width
 * @param string $height
 * 显示图片路径
 */
function showImage($url, $width = '', $height = '')
{
    $ic = C('IMAGE_CONFIG');
    if($width)
        $width = "width='$width'";
    if($height)
        $height = "height='$height'";
    echo "<img $width $height src='{$ic['viewPath']}$url' />";
}

?>